package com.laicunba.util;

public class XSSUtil {

	public static String encode(String str) {
		return str == null || str.isEmpty() ? str : str.replaceAll("<", "&lt;").replaceAll(">", "&gt;");
	}

}
